/* 登录弹窗样式 - 添加前缀 */
.login-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 250;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 90%;
    max-width: 400px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: login-popup 0.3s ease-out;
    position: relative;
}

@keyframes login-popup {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.login-header {
    background: linear-gradient(135deg, #ff3b30, #ff6b6b);
    color: white;
    padding: 25px 20px;
    text-align: center;
}

.login-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.login-form {
    padding: 25px;
}

.login-form-group {
    margin-bottom: 20px;
    position: relative;
}

.login-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.login-form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.login-form-input:focus {
    border-color: #ff3b30;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.1);
}

.login-form-error {
    color: #ff3b30;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff3b30, #ff6b6b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 8px rgba(255, 59, 48, 0.2);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 59, 48, 0.3);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 59, 48, 0.2);
}

.login-tips {
    margin-top: 20px;
    font-size: 12px;
    color: #999;
    text-align: center;
}

.login-input-icon {
    position: absolute;
    right: 16px;
    top: 40px;
    color: #999;
    font-size: 18px;
}

.login-form-input:focus + .login-input-icon {
    color: #ff3b30;
}

.login-pdd-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.login-pdd-logo span {
    font-size: 26px;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
}

/* 登录关闭按钮 */
.login-close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s;
}

.login-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Toast提示样式 */
.login-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 80%;
    text-align: center;
}

.login-toast.shake {
    animation: login-shake 0.5s ease-in-out;
}

@keyframes login-shake {
    0%, 100% { transform: translateX(-50%); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(calc(-50% - 5px)); }
    20%, 40%, 60%, 80% { transform: translateX(calc(-50% + 5px)); }
}